#include <stdio.h>
#include <stdlib.h> 

int main() {
    int N, count = 0;
    
    scanf("%d", &N);
    
    N = abs(N);
    
    if (N == 0) {
        count = 1;
    } else {
        while (N > 0) {
            count++;
            N /= 10;
        }
    }
    
    printf("It contains %d digits.\n", count);
    
    return 0;
}
